
#import "SEGPictorialCommentListModel.h"
@implementation SEGPictorialCommentListModel
- (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    self = [super init];
    if (self) {
        _id = @"";
        _isPraise = @"";
        _floorIsPraise = @"";
        _objType = @"";
        _byReviewNick = @"";
        _objId = @"";
        _isAuth = @"";
        _userId = @"";
        _createTime = @"";
        _commentContent = @"";
        _nickName = @"";
        _praiseTotal = @"";
        _ico = @"";
        _floorPraiseTotal = @"";
        _floorUserId = @"";
        _communityName = @"";
        _byReviewId = @"";
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
+ (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    return [[self alloc] initWithDictionary:dictionary];
}
- (void)setValue:(id)value forUndefinedKey:(NSString*)key
{
}

- (void)setValue:(id)value forKey:(NSString*)key
{
    if ([key isEqualToString:@"floorComments"]) {

        NSMutableArray* _arrM = [NSMutableArray array];

        for (NSDictionary* dict in value) {

            SEGFloorCommentsModel* model = [SEGFloorCommentsModel initWithDictionary:dict];

            [_arrM addObject:model];
        }

        self.floorComments = _arrM.copy;

        return;
    }

    [super setValue:value forKey:key];
}

- (void)setId:(NSString*)id
{
    _id = [[SEGUtils ValueToString:id] copy];
}
- (void)setIsPraise:(NSString*)isPraise
{
    _isPraise = [[SEGUtils ValueToString:isPraise] copy];
}
- (void)setFloorIsPraise:(NSString*)floorIsPraise
{
    _floorIsPraise = [[SEGUtils ValueToString:floorIsPraise] copy];
}
- (void)setObjType:(NSString*)objType
{
    _objType = [[SEGUtils ValueToString:objType] copy];
}
- (void)setByReviewNick:(NSString*)byReviewNick
{
    _byReviewNick = [[SEGUtils ValueToString:byReviewNick] copy];
}
- (void)setObjId:(NSString*)objId
{
    _objId = [[SEGUtils ValueToString:objId] copy];
}
- (void)setIsAuth:(NSString*)isAuth
{
    _isAuth = [[SEGUtils ValueToString:isAuth] copy];
}
- (void)setUserId:(NSString*)userId
{
    _userId = [[SEGUtils ValueToString:userId] copy];
}
- (void)setCreateTime:(NSString*)createTime
{
    _createTime = [[SEGUtils ValueToString:createTime] copy];
}
- (void)setCommentContent:(NSString*)commentContent
{
    _commentContent = [[SEGUtils ValueToString:commentContent] copy];
}
- (void)setNickName:(NSString*)nickName
{
    _nickName = [[SEGUtils ValueToString:nickName] copy];
}
- (void)setPraiseTotal:(NSString*)praiseTotal
{
    _praiseTotal = [[SEGUtils ValueToString:praiseTotal] copy];
}
- (void)setIco:(NSString*)ico
{
    _ico = [[SEGUtils ValueToString:ico] copy];
}
- (void)setFloorPraiseTotal:(NSString*)floorPraiseTotal
{
    _floorPraiseTotal = [[SEGUtils ValueToString:floorPraiseTotal] copy];
}

- (void)setFloorUserId:(NSString*)floorUserId
{
    _floorUserId = [[SEGUtils ValueToString:floorUserId] copy];
}

- (void)setCommunityName:(NSString*)communityName
{
    _communityName = [[SEGUtils ValueToString:communityName] copy];
}

- (void)setByReviewId:(NSString*)byReviewId
{
    _byReviewId = [[SEGUtils ValueToString:byReviewId] copy];
}

-(void)setLevelUrl:(NSString *)levelUrl{
    _levelUrl = [[SEGUtils ValueToString:levelUrl] copy];
}
@end
